body {
  margin: 0;
  font-family: sans-serif;
}

a {
  color: #409eff;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
  color: #66b1ff;
}

input[type="text"], input[type="email"], input[type="password"] {
  box-sizing: border-box;
  height: 30px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  outline: 2px solid transparent;
  outline-offset: -2px;
  padding: 0 8px;
  font-size: 14px;
  transition: outline 0.2s;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  outline: 2px solid gray;
}

textarea {
  box-sizing: border-box;
  border: 1px solid #cccccc;
  border-radius: 3px;
  outline: 2px solid transparent;
  outline-offset: -2px;
  padding: 6px 8px;
  font-size: 14px;
  font-family: sans-serif;
  transition: outline 0.2s;
}

textarea:focus {
  outline: 2px solid gray;
}

button, input[type="submit"], select {
  height: 30px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  background-color: white;
  padding: 0 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover, input[type="submit"]:hover, select:hover {
  background-color: #eeeeee;
}

table {
  width: 100%;
  border-collapse: collapse;
}

tbody tr {
  transition: background-color 0.2s;
}

tbody tr:hover {
  background-color: #eeeeee;
}

th {
  border-top: 1px solid #cccccc;
  color: #909090;
}

th, td {
  border-bottom: 1px solid #cccccc;
  padding: 8px 20px;
  text-align: center;
}

@keyframes alert {
  0% { top: -50px; }
  15% { top: 30px; }
  85% { top: 30px; }
  100% { top: -50px; }
}

.alert {
  position: fixed;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 5px 30px;
  border-radius: 5px;
  background-color: white;
  animation: 3s ease-in-out forwards alert;
}

.alert.success {
  border: 1px solid green;
  color: green;
}

.alert.error {
  border: 1px solid red;
  color: red;
}

#view-login {
  margin: 50px auto 0;
  padding: 10px 30px;
  width: 300px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

#form-login p {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#view-main {
  margin: 0 auto;
  padding: 50px;
  max-width: 800px;
}
